package com.lemo.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =new AnnotationConfigApplicationContext(AopConfig.class);
        context.getBean(DemoMethodService.class).add();
        context.getBean(DemoAnnotationService.class).add();
        context.close();
    }
}
